/**
 * 
 */
package org.dg.iag.entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * @author dan
 *
 */
@XStreamAlias("ImportLogStatus")
public class ImportLogStatus {

        private static final ImportLogStatus instance = new ImportLogStatus();
        
        private Log log;
        private Integer totalNoTags;
        private Integer currentTagNo;
        private Long groupId;
        private Boolean finished;
        
        
        public Log getLog() {
			return log;
		}

		public synchronized void setLog(Log log) {
			this.log = log;
		}

		public Integer getTotalNoTags() {
			return totalNoTags;
		}

		public synchronized void setTotalNoTags(Integer totalNoTags) {
			this.totalNoTags = totalNoTags;
		}

		public Integer getCurrentTagNo() {
			return currentTagNo;
		}

		public synchronized void setCurrentTagNo(Integer currentTagNo) {
			this.currentTagNo = currentTagNo;
		}

		public Long getGroupId() {
			return groupId;
		}

		public synchronized void setGroupId(Long groupId) {
			this.groupId = groupId;
		}
		

		/**
		 * @return the finished
		 */
		public Boolean getFinished() {
			return finished;
		}

		/**
		 * @param finished the finished to set
		 */
		public void setFinished(Boolean finished) {
			this.finished = finished;
		}

		private ImportLogStatus() {
        	this.log = new Log();
        	this.currentTagNo = null;
        	this.groupId = null;
        	this.totalNoTags = null;
        }
		
		private ImportLogStatus(Integer totalNoTags) {
        	this.log = new Log();
        	this.currentTagNo = null;
        	this.groupId = null;
        	this.totalNoTags = totalNoTags;
        }
 
        public static ImportLogStatus getInstance() {
                return instance;
        }
	
}
